package main

import (
	"fmt"
	"html/template"
	"os"
)

type Person struct{
	UserName string
	Email string
}

func main(){
	fmt.Println("example1...")
	t:=template.New("fieldname example")
	t,_=t.Parse("hello {{.UserName}}! {{.Email}}! --- {{.}}")
	p:=Person{"Jackie","xxx@sina.com"}
	t.Execute(os.Stdout,p)
}
